/*
 * @Author: HeAo
 * @Date: 2022-09-13 14:06:37
 * @LastEditTime: 2022-09-13 14:17:45
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \第二阶段\ES6\day01\src\8-modules.js
 * 别乱动！
 */
// commonjs模块化引入
// let {
//   firstName,
//   lastName
// } = require('./7-modules')
// console.log(firstName, lastName);
// setTimeout(() => {
//   console.log(firstName, lastName);
// }, 4000)

// es6模块化引入
import {
  first,
  last
} from "./7-modules";
console.log(first, last);
setTimeout(() => {
  console.log(first, last);
}, 4000)